package com.sxhalo.fsms.domain;

public class SysDriver {
    /**
     * 驱动信息ID
     */
    private Integer id;

    /**
     * 驱动名称
     */
    private String name;


    /**
     * 驱动名称
     */
    private String driverName;

    /**
     * 驱动类型，0、网口；1、串口
     */
    private Integer driverType;

    /**
     * 串口号，如：COM4
     */
    private String commandPort;

    /**
     * 波特率，4800，9600，14400，19200，38400
     */
    private Integer baudRate;

    /**
     * 数据位,7或8
     */
    private Integer dataBits;

    /**
     * 停止位,1或2
     */
    private Integer stopBits;

    /**
     * 校验位，0奇、1偶、none无
     */
    private String parity;

    /**
     * ip和端口
     */
    private String ipport;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getDriverType() {
        return driverType;
    }

    public void setDriverType(Integer driverType) {
        this.driverType = driverType;
    }

    public String getCommandPort() {
        return commandPort;
    }

    public void setCommandPort(String commandPort) {
        this.commandPort = commandPort == null ? null : commandPort.trim();
    }

    public Integer getBaudRate() {
        return baudRate;
    }

    public void setBaudRate(Integer baudRate) {
        this.baudRate = baudRate;
    }

    public Integer getDataBits() {
        return dataBits;
    }

    public void setDataBits(Integer dataBits) {
        this.dataBits = dataBits;
    }

    public Integer getStopBits() {
        return stopBits;
    }

    public void setStopBits(Integer stopBits) {
        this.stopBits = stopBits;
    }

    public String getParity() {
        return parity;
    }

    public void setParity(String parity) {
        this.parity = parity == null ? null : parity.trim();
    }

    public String getIpport() {
        return ipport;
    }

    public void setIpport(String ipport) {
        this.ipport = ipport == null ? null : ipport.trim();
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }
}